package cn.yitun.chat.yitunservercommonlib.crud.base;

import java.util.List;
import java.util.Map;

public interface BootService<T> {

    T get(Long id);

    List<T> list(Map<String, Object> map);

    List<T> list();

    List<T> list(T entity);


    int count(Map<String, Object> map);

    int save(T t);

    int update(T t);

    int remove(Long id);

    int batchRemove(Long[] ids);

    int batchRemove(List<Long> ids);

}
